<?php

$servername = "127.0.0.1";
$username = "root";
$password = "210125";
$sql_name = "greeting-card-diy";

// 创建连接
global $conn;
$conn = new mysqli($servername, $username, $password, $sql_name);

// 检测连接
if ($conn->connect_error) {
    die("数据库连接失败: " . $conn->connect_error);
}
// echo "<script>console.log('数据库连接成功')</script>";

